package san.service.m;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.web.page.Page;

import san.dao.m.SupplierDao;
import san.entity.m.Supplier;
@Service
@Transactional
public class SupplierService{
	/**
	 * 自动生成SupplierService类.
	 */
	private static final long serialVersionUID = 1051983639902168974L;
	@Autowired
	private SupplierDao supplierDao;
	
	@Transactional(readOnly = true)
	public Page<Supplier> getAll(Page<Supplier> page) throws Exception {
		return supplierDao.getAll(page);
	}

	@Transactional(readOnly = true)
	public Supplier get(String id) throws Exception {
		return supplierDao.get(id);
	}

	public void save(Supplier supplier) throws Exception {
		supplierDao.save(supplier);
	}

	public void delete(String id) throws Exception {
		supplierDao.delete(id);
	}

}
